package service.admin.impl;

import dao.admin.RulesDao;
import dao.admin.impl.RulesDaoImpl;
import entity.Rules;
import service.admin.RulesService;

import java.util.List;

/**
 * RulesServiceImpl
 *
 * @author 谭文斌
 * @since 2023/9/5
 */
public class RulesServiceImpl implements RulesService {
    RulesDao dao=new RulesDaoImpl();
    @Override
    public List<Rules> getList() {
        return dao.getList();
    }

    @Override
    public int add(Rules rules) {
        return dao.add(rules);
    }

    @Override
    public int upd(Rules rules) {
        return dao.upd(rules);
    }

    @Override
    public int del(int id) {
        return dao.del(id);
    }
}
